import { HuoMoneyModule } from './router/components/HuoMoney/HuoMoney.module';
import { HuoCustmpModule } from './router/components/HuoCustmp/HuoCustmp.module';
import { RoutesModule } from './router/routes.module';
import { routes } from './router/routes';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';//引入的原因是如果服务器不再node服务器上
import { HttpModule, JsonpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
import { NgxEchartsModule } from 'ngx-echarts';

import { ApiService } from './providers/ApiPro.service';
import { UtilService } from './providers/util';


import { AppComponent } from './app.component';
import { UserModule } from './user/user.module';
import { LayoutModule } from './layout/layout.module';
import { HuoMainTmpModule } from './router/components/HuoMainTmp/HuoMainTmp.module';
import { HuoMesstmpModule } from './router/components/HuoMesstmp/HuoMesstmp.module';
import { HuoSettmpModule } from './router/components/HuoSettmp/HuoSettmp.module';
import { HuoRestmpModule } from './router/components/HuoRestmp/HuoRestmp.module';

const APPSERVICE = [
  ApiService, UtilService
]

@NgModule({
  declarations: [
    AppComponent,
],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    HttpClientModule,
    JsonpModule,
    BrowserAnimationsModule,
    NgZorroAntdModule.forRoot(),
    RouterModule.forRoot(routes),
    NgxEchartsModule,
    UserModule,
    LayoutModule,
    RoutesModule,
    HuoMainTmpModule,
    HuoCustmpModule,
    HuoMoneyModule,
    HuoMesstmpModule,
    HuoSettmpModule,
    HuoRestmpModule,
  ],
  providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }, APPSERVICE],
  bootstrap: [AppComponent]
})
export class AppModule { }
